package mock;

import com.timanetworks.foundation.common.auth.interceptor.TokenCheckInterceptor;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/6/23 15:52
 */
@Profile("test")
@Component
public class MockTokenCheckInterceptor extends TokenCheckInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        return true;
    }
}
